package felix.rule.service.actors.chain;

import felix.actor.core.msg.TActorMsg;
import felix.actor.core.msg.TMsgType;
import felix.rule.data.msg.EngineMsg;
import felix.rule.data.msg.MessageType;
import lombok.Data;

import java.io.Serializable;
import java.util.Set;

@Data
class RuleNodeToRuleChainTellNextMsg implements TActorMsg, Serializable {

    private static final long serialVersionUID = 4577026446412871820L;
    private final String originator;
    private final Set<String> relationTypes;
    private final EngineMsg msg;
    private final String failureMessage;

    @Override
    public TMsgType getMsgType() {
        return MessageType.RULE_TO_RULE_CHAIN_TELL_NEXT_MSG;
    }

}
